package com.samuel.basics.model;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * layUi tree 节点
 * </p>
 *
 * @author kaiji
 * @since 2019/10/18 16:41
 */

public class LayUiTreeNode implements Serializable {

    private static final long serialVersionUID = -1118974655477975428L;

    /**
     * 节点标题
     **/
    private String title;
    /**
     * 节点唯一索引值，用于对指定节点进行各类操作
     **/
    private String id;
    /**
     * 节点字段名
     **/
    private String field;
    /**
     * 点击节点弹出新窗口对应的 url。需开启 isJump 参数
     **/
    private String href;
    /**
     * 节点是否初始展开，默认 false
     **/
    private boolean spread = false;
    /**
     * 节点是否初始为选中状态（如果开启复选框的话），默认 false
     **/
    private boolean checked = false;
    /**
     * 节点是否为禁用状态。默认 false
     **/
    private boolean disabled = false;
    /**
     * 节点icon
     **/
    private String icon;
    /**
     * 子节点列表
     **/
    private List<LayUiTreeNode> children;


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public boolean isSpread() {
        return spread;
    }

    public void setSpread(boolean spread) {
        this.spread = spread;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public boolean isDisabled() {
        return disabled;
    }

    public void setDisabled(boolean disabled) {
        this.disabled = disabled;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public List<LayUiTreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<LayUiTreeNode> children) {
        this.children = children;
    }
}
